package br.ufpe.cin.imlm2.jbeat.soot.dump;

import br.ufpe.cin.imlm2.util.SystemProperties;
import br.ufpe.cin.imlm2.util.options.Option;
import br.ufpe.cin.imlm2.util.options.Options;

public class DumpOptions extends Options {

	public static final String DUMP_PATH = "dumpPath";

	public DumpOptions() {
		super();
		String defaultPath = System.getProperty( "user.dir" );
		if ( !defaultPath.endsWith( SystemProperties.FILE_SEPARATOR ) )
			defaultPath += SystemProperties.FILE_SEPARATOR;
		defaultPath += ("class_dump" + ClassDumper.EXTENSION_JB);
		this.addOption( new Option( DUMP_PATH, null, "File path which the dumped classes"
				+ " should be output to.", defaultPath ) );
		this.addOption( new Option( "enabled", null,
				"Confirms whether or not this option is enabled", Boolean.TRUE ) );
	}

	public String getDumpPath() {
		return (String) this.getOptionInternal(DUMP_PATH).getValue();
	}
	
	
}
